public class T3_3_1{
    public static void main(String s[]){
	double sum=0,j=1;
	for(int i=1;i<=20;i++){
	    j=j*i;
	    sum=sum+1.0/j;
	}
	System.out.println(sum);
    }
}
